package com.example.lotterysystem.service;


import com.example.lotterysystem.controller.param.UserLoginParam;
import com.example.lotterysystem.controller.param.UserLoginPasswordParam;
import com.example.lotterysystem.controller.param.UserRegisterParam;
import com.example.lotterysystem.service.dto.UserDTO;
import com.example.lotterysystem.service.dto.UserLoginDTO;
import com.example.lotterysystem.service.dto.UserRegisterDTO;
import com.example.lotterysystem.service.enums.UserIdentityEnum;

import java.util.List;

public interface UserService {

    //用户注册
    UserRegisterDTO register(UserRegisterParam param);

    /**
     * 1.支持密码登录
     * 2.支持验证码登录
     * @param param
     * @return
     */
    UserLoginDTO login(UserLoginParam param);

    List<UserDTO> findUserInfo(UserIdentityEnum identity);
}
